<template>
  <div>
     <ul v-for="(v,k) in params" :key="v">
         <li>{{k}}:{{v}}</li>
     </ul>
    <van-radio-group v-model="show">
        <van-radio name="1">同意</van-radio>
        <van-radio name="2">不同意</van-radio>
    </van-radio-group>
    <van-field label="意见" placeholder="请输入个人意见" v-model="connect"/>
    <van-button @click="add">提交</van-button>
  </div>
</template>

<script>
import axios from '../../http/axios'
export default {
data () {
    return {
        id:this.$route.query.id,
        list:'',
        params:'',
        show:'1',
        connect:''

    }
},
methods: {
    get_list(){
        axios('/addtask?id='+this.id,'get').then(res=>{
            console.log(res)
            this.params=JSON.parse(res.list.params)
        })
    },
    get_vacation(){

    },
    add(){

    }
},
mounted () {
    this.get_list()
}
}
</script>

<style>

</style>